
import { createI18n } from 'vue-i18n';
import storage from 'good-storage';
import en from './en';
import cn from './zh';

let lang = storage.get('lang')
console.log(lang, '?');


const messages = {
  en,
  cn,
};

const i18n = createI18n({
  locale: lang ? lang : 'cn', // set default locale
  messages, // set locale messages
});

export default i18n;
